{% load dajaxice_templatetags %}
{% dajaxice_js_import %}
{% load static %}

<script type="text/javascript" src="{% get_static_prefix %}scripts/own/item_category_autocomplete.js"></script>
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		autoComplete = new ItemCategoryAutoComplete($("#id_item_category"), '{{ module_part.id }}', '{{ module_term.id }}');
		$('#item_category_hint').tooltip({
			position: 'center right',
			effect: 'fade'
		});
	});
</script>

<!-- Item Category Comment -->
<tr>
    <th><label for="id_item_category">Kategorie des Dokuments:</label></th>
    <td>{{ form.item_category }}</td>
    <td><div class="hint" id="item_category_hint" title="z.B. Abgabe, Lösung, Zusatzaufgaben - Singular" /></td>
</tr>

<!-- Item Comment -->
<tr>
    <th><label for="id_comment">Kommentar zum Dokument:</label></th>
    <td>{{ form.comment }}</td>
</tr>
